package com.ym.medical.domain.entity;

import com.ym.common.constant.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;

/**
 * 帖子中间表对象 topic_middle
 *
 * @author ym
 * @date 2020-08-24
 */
@ApiModel("帖子中间表-实体")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "topic_middle")
public class TopicMiddleEntity extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 用户id
	 */
	@ApiModelProperty("用户id")
	private Long userId;

	/**
	 * 帖子id
	 */
	@ApiModelProperty("帖子id")
	private Long topicId;

	/**
	 * 是否点赞
	 */
	@ApiModelProperty("是否点赞")
	private String goodFlag;

	/**
	 * 是否收藏
	 */
	@ApiModelProperty("是否收藏")
	private String collect;

}
